package br.com.guiav6.sisguia.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import br.com.guiav6.sisguia.bean.AnuncioBean;
import br.com.guiav6.sisguia.dao.EmpresaDao;
import br.com.guiav6.sisguia.entity.Empresa;
import br.com.guiav6.sisguia.service.AnuncioService;

@Service("anuncioService")
public class AnuncioServiceImpl implements AnuncioService {
	
	@Autowired(required = true)
	EmpresaDao empresaDao;

	@Override
	public List<Empresa> pesquisar(AnuncioBean bean, Integer idBairro) {
		return empresaDao.findEmpresaByServicoEspecialidadeLocal(bean, idBairro);
	}

}